home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / programming / oracle7 7.2 / NET / TCP22 / TCP22.VRF < prev   
Encoding:
Text File  |  1995-10-13  |  5.3 KB  |  126 lines

  1. /* Copyright (c) Oracle Corporation 1994.  All Rights Reserved */
  2. /*****************************************************************************
  3.   NAME
  4.     tcp22.vrf - Windows 95 V3 installation verification script for 
  5.                 TCP/IP Protocol Adapter.
  6.  
  7.   DESCRIPTION
  8.     This script checks dependencies and environment settings for installation
  9.     of the Windows 95 TCP/IP product.
  10.  
  11.   OWNER
  12.     Lav Jain
  13.  
  14.   MODIFIED    DD-MMM-YY Reason
  15.     trodgers  10-APR-92 Created.
  16.     zkhan     11-AUG-93 Modified for SQLNET and for using V3.0.9.3.2 or later
  17.             of the installer.
  18.     eflores   06-APR-94 Modified for Windows NT.
  19.     ljain     07-JUL-95 Modified for Windows 95.
  20. *****************************************************************************/
  21. {
  22.  { doit = execute("%installer_home%\win95.vrf"); }
  23.   [
  24.     'UNBOUND_VARIABLE:
  25.       {
  26.         required_version = product_version(w95instver);
  27.         temp = explode(required_version,".");
  28.         required_version = implode(list(first(temp),first(rest(temp)),
  29.                                         first(rest(rest(temp))),
  30.                                         first(rest(rest(rest(temp))))),".");
  31.         signal('failure,instantiate(nls("instver_too_early1","The version of
  32. the Installer currently running is %%installer_version%%. The installation you
  33. have chosen requires version %%required_version%% or later. Please run version
  34. %%required_version%% or later in order to perform this installation.")));
  35.       }
  36.   ]
  37.  
  38.  
  39.   if (not(doit) && (version_status == 'reinstall))
  40.     doit = TRUE;    
  41.  
  42.   if (doit)
  43.   {
  44.     protocol_prompt = nls("protocol_prompt", "The TCP/IP network protocol is currently not installed on your machine. Oracle TCP/IP Protocol Adapter cannot function without this network protocol. Would you still like to install it?");
  45.     protocol_prompt_content = nls("protocol_prompt_content", "TCP/IP Protocol Not Installed");
  46.     protocol_prompt_help = nls("protocol_prompt_help", "The TCP/IP network protocol is currently not installed on your machine. Oracle TCP/IP Protocol Adapter cannot function without this network protocol.
  47.  
  48. The TCP/IP network protocol enables data transfer on Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
  49.  
  50. If you are not familiar with network transport protocols, please contact your network administrator.
  51.  
  52. YES installs the Oracle TCP/IP Protocol Adapter.
  53.  
  54. NO does not install the Oracle TCP/IP Protocol Adapter.");
  55.  
  56.     yes_ans = nls("yes_ans","Yes");
  57.     no_ans = nls("no_ans","No");
  58.     yes_no_list = list(yes_ans, no_ans);
  59.  
  60.     if(not(win32_key_exists("HKEY_LOCAL_MACHINE",
  61.                             "System\CurrentControlSet\Services\VxD\MSTCP")))
  62.     {
  63.       ans = single_selection_dialog(protocol_prompt, yes_no_list, no_ans, protocol_prompt_content, protocol_prompt_help);
  64.       if (ans == no_ans)
  65.       {
  66.         extract(products_for_installation, w95tcp22);
  67.         doit = FALSE;
  68.       }
  69.     }
  70.   }
  71.  
  72.  
  73.   if (doit)
  74.   {
  75.     vrf_ratchet = "2.2.2.0.0";
  76.  
  77.     net2_register = nls("net2_register","Registering %%product_label%%...");
  78.  
  79.     net2_install_script = nls("net2_install_script","Installing %%product_label%% Installation Scripts...");
  80.  
  81.     net2_install_dll = nls("net2_install_dll","Installing %%product_label%% DLL's...");
  82.  
  83.     no_protocol = nls("no_protocol", "Oracle TCP/IP Protocol Adapter not installed.");
  84.  
  85.     tcp22_expl = nls("tcp22_expl", "A %%product_label%% DLL (NTTNT.DLL) is being used on this machine. Please stop all Oracle applications that are using %%product_label%% before installing %%product_label%%.
  86.  
  87. Silent mode installation of %%product_label%% terminated.");
  88.     tcp22_inst = instantiate(nls("tcp22_inst", "A %%product_label%% DLL (NTTNT.DLL) is being used on this machine. Please stop all Oracle applications that are using %%product_label%% before installing %%product_label%%.
  89.  
  90. Choose OK after you have closed all Oracle applications and want to resume the installation of %%product_label%%.
  91.  
  92. Choose CANCEL to terminate the installation of %%product_label%%.
  93.     "));
  94.     tcp22_inst_term = instantiate(nls("tcp22_inst_term", "%%product_label%% installation terminated."));
  95.     tcp22_inst_content = instantiate(nls("tcp22_inst_content", "%%product_label%% DLL Used"));
  96.     tcp22_inst_help = instantiate(nls("tcp22_inst_help", "The Oracle Installer has detected that a %%product_label%% DLL (NTTNT.DLL) is being used on this machine.  Please stop all Oracle applications that are using %%product_label%% before installing %%product_label%%.
  97.  
  98. Choose OK after you have closed all Oracle applications and want to resume the installation of %%product_label%%.
  99.  
  100. Choose CANCEL to terminate the installation of %%product_label%%.
  101.     "));
  102.  
  103.  
  104.    done = FALSE;
  105.    while(not(done))
  106.    { move_file("%ORACLE_HOME%\bin\nttnt.dll", "%ORACLE_HOME%\bin\nttnt.dll");  done = TRUE;}
  107.     [ 'PERMISSION_DENIED, 'INVALID_FILE_NAME, 'OS_ERROR, 'WRITE_ERROR:
  108.       {
  109.         if (silent_mode)
  110.           signal('FAILURE, instantiate(tcp22_expl));
  111.         else
  112.           information_dialog(instantiate(tcp22_inst), tcp22_inst_content, instantiate(tcp22_inst_help));
  113.       }
  114.       'FILE_NOT_FOUND:
  115.         done = TRUE;
  116.     ]                       
  117.    
  118.     return(sum(dll,deinstl));
  119.   }
  120.   else
  121.   {
  122.     refresh_map_file = FALSE;
  123.     return(0);
  124.   }
  125. }
  126.